<?php
	include(ROOTPATH .'include'. DS .'protect.php');
	include(ROOTPATH .'include'. DS .'checkUserLogin.php');
	$powder_min = 9 ;
	include(ROOTPATH .'include'. DS .'checkPowder.php');
	include "header.php"; 
	
	$page = (int)getQuery('page');

?>
</head>

<body>
<div class="pos">
	<?php require('top.php'); ?>
	<div class="contents">
    	<?php require('nav.php'); ?>   
    	<div class="creatThumb" style=" padding:30px; font-size:14px;">
        	<?php if($page != -1 && $page != 0){?>
            <div id="show">第<?php echo $page;?>页, 正在跳转...<span>2</span></div>
    
            <script type="text/javascript">
            var showTime = setInterval(function(){
                $show =  $('#show span');
                $show.html(parseInt($show.html()) - 1);
                if( parseInt($show.html()) == 0  ){
                    clearInterval(showTime);
                    window.location.href='<?php echo ROOT_PATH. '?option=admin.creatThumbDo&page='. ($page + 1); ?>';
                }
                
            },1000);
            
            </script>
            <?php }elseif($page == 0){?>
            	给没有缩略图的作品生成缩略图<br /><br />
                <div><a class="submit" href="<?php echo ROOT_PATH. '?option=admin.creatThumbDo&page=1'; ?>">开始</a></div>
            <?php }else{?>
                <div id="show">重建缩略图动作执行完毕。(现在还没有缩略图的作品，是因为他没有上传(jpg格式的)图片)</div>
            <?php } ?>
        
        
        </div>
        
    
    </div>



</div>


</body>
</html>
